package com.wbk.system.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

import java.io.File;
import java.io.IOException;

@Component
@FeignClient(value = "lottery-system-system")
public interface UploadFeign {

    @PostMapping("/system/api/auth/upload/qrCode")
    String uploadQrCode(@RequestParam(value = "storeUserNo") Long storeUserNo,
                        @RequestParam(value = "file") File file) throws IOException;
}
